package com.example.blog.mapper;

import com.example.blog.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Question UsersMapper
 * @Date 2023/1/6 10:17
 * @Solution
 */
@Mapper
public interface UsersMapper {
    public int add(@Param("username") String username,@Param("password") String password);
    public UserInfo getByName(@Param("username") String username);
    public UserInfo getById(@Param("id") int id);
    public int revisePs(@Param("password") String password,@Param("id") int id);
    public int reviseUn(@Param("username") String username,@Param("id") int id);
    public int reviseEm(@Param("email") String email,@Param("id") int id);
    public int reviseProfile(@Param("profile") String profile,@Param("id") int id);
}
